package net.wanho.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.wanho.po.Role;
import net.wanho.po.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 32033
 * @description 针对表【user_role(用户角色表)】的数据库操作Mapper
 * @createDate 2025-01-11 17:01:23
 * @Entity net.wanho.po.UserRole
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    List<UserRole> selectUserById(Integer userId);

    Integer selectIdsByRoleName(String item);

    Role selectRoleByName(String roleName);

    Role selectRoleById(Integer id);
}




